/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.server.auth.model;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2020-09-24
 * @version 1.0
 * @since 1.0
 */
public class UserOrganizationCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static UserOrganizationCriteria create() {
		return new UserOrganizationCriteria();
	}
	
	public static UserOrganizationCriteria create(Column column) {
		UserOrganizationCriteria that = new UserOrganizationCriteria();
		that.add(column);
        return that;
    }

    public static UserOrganizationCriteria create(String name, Object value) {
        return (UserOrganizationCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("lk_user_organization", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public UserOrganizationCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public UserOrganizationCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public UserOrganizationCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public UserOrganizationCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public UserOrganizationCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UserOrganizationCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public UserOrganizationCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public UserOrganizationCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public UserOrganizationCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public UserOrganizationCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public UserOrganizationCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public UserOrganizationCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public UserOrganizationCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public UserOrganizationCriteria andUserIdIsNull() {
		isnull("user_id");
		return this;
	}
	
	public UserOrganizationCriteria andUserIdIsNotNull() {
		notNull("user_id");
		return this;
	}
	
	public UserOrganizationCriteria andUserIdIsEmpty() {
		empty("user_id");
		return this;
	}

	public UserOrganizationCriteria andUserIdIsNotEmpty() {
		notEmpty("user_id");
		return this;
	}
       public UserOrganizationCriteria andUserIdEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UserOrganizationCriteria andUserIdNotEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.NOT_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UserOrganizationCriteria andUserIdGreaterThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UserOrganizationCriteria andUserIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.GREATER_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UserOrganizationCriteria andUserIdLessThan(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_THEN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UserOrganizationCriteria andUserIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("user_id", value, ConditionMode.LESS_EQUAL, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UserOrganizationCriteria andUserIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("user_id", value1, value2, ConditionMode.BETWEEN, "userId", "java.lang.Long", "Float");
    	  return this;
      }

      public UserOrganizationCriteria andUserIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("user_id", value1, value2, ConditionMode.NOT_BETWEEN, "userId", "java.lang.Long", "Float");
          return this;
      }
        
      public UserOrganizationCriteria andUserIdIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.IN, "userId", "java.lang.Long", "Float");
          return this;
      }

      public UserOrganizationCriteria andUserIdNotIn(List<java.lang.Long> values) {
          addCriterion("user_id", values, ConditionMode.NOT_IN, "userId", "java.lang.Long", "Float");
          return this;
      }
	public UserOrganizationCriteria andOrganizationIdIsNull() {
		isnull("organization_id");
		return this;
	}
	
	public UserOrganizationCriteria andOrganizationIdIsNotNull() {
		notNull("organization_id");
		return this;
	}
	
	public UserOrganizationCriteria andOrganizationIdIsEmpty() {
		empty("organization_id");
		return this;
	}

	public UserOrganizationCriteria andOrganizationIdIsNotEmpty() {
		notEmpty("organization_id");
		return this;
	}
       public UserOrganizationCriteria andOrganizationIdEqualTo(java.lang.Integer value) {
          addCriterion("organization_id", value, ConditionMode.EQUAL, "organizationId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andOrganizationIdNotEqualTo(java.lang.Integer value) {
          addCriterion("organization_id", value, ConditionMode.NOT_EQUAL, "organizationId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andOrganizationIdGreaterThan(java.lang.Integer value) {
          addCriterion("organization_id", value, ConditionMode.GREATER_THEN, "organizationId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andOrganizationIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("organization_id", value, ConditionMode.GREATER_EQUAL, "organizationId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andOrganizationIdLessThan(java.lang.Integer value) {
          addCriterion("organization_id", value, ConditionMode.LESS_THEN, "organizationId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andOrganizationIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("organization_id", value, ConditionMode.LESS_EQUAL, "organizationId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andOrganizationIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("organization_id", value1, value2, ConditionMode.BETWEEN, "organizationId", "java.lang.Integer", "Float");
    	  return this;
      }

      public UserOrganizationCriteria andOrganizationIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("organization_id", value1, value2, ConditionMode.NOT_BETWEEN, "organizationId", "java.lang.Integer", "Float");
          return this;
      }
        
      public UserOrganizationCriteria andOrganizationIdIn(List<java.lang.Integer> values) {
          addCriterion("organization_id", values, ConditionMode.IN, "organizationId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andOrganizationIdNotIn(List<java.lang.Integer> values) {
          addCriterion("organization_id", values, ConditionMode.NOT_IN, "organizationId", "java.lang.Integer", "Float");
          return this;
      }
	public UserOrganizationCriteria andJobsIsNull() {
		isnull("jobs");
		return this;
	}
	
	public UserOrganizationCriteria andJobsIsNotNull() {
		notNull("jobs");
		return this;
	}
	
	public UserOrganizationCriteria andJobsIsEmpty() {
		empty("jobs");
		return this;
	}

	public UserOrganizationCriteria andJobsIsNotEmpty() {
		notEmpty("jobs");
		return this;
	}
        public UserOrganizationCriteria andJobsLike(java.lang.String value) {
    	   addCriterion("jobs", value, ConditionMode.FUZZY, "jobs", "java.lang.String", "Float");
    	   return this;
      }

      public UserOrganizationCriteria andJobsNotLike(java.lang.String value) {
          addCriterion("jobs", value, ConditionMode.NOT_FUZZY, "jobs", "java.lang.String", "Float");
          return this;
      }
      public UserOrganizationCriteria andJobsEqualTo(java.lang.String value) {
          addCriterion("jobs", value, ConditionMode.EQUAL, "jobs", "java.lang.String", "String");
          return this;
      }

      public UserOrganizationCriteria andJobsNotEqualTo(java.lang.String value) {
          addCriterion("jobs", value, ConditionMode.NOT_EQUAL, "jobs", "java.lang.String", "String");
          return this;
      }

      public UserOrganizationCriteria andJobsGreaterThan(java.lang.String value) {
          addCriterion("jobs", value, ConditionMode.GREATER_THEN, "jobs", "java.lang.String", "String");
          return this;
      }

      public UserOrganizationCriteria andJobsGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("jobs", value, ConditionMode.GREATER_EQUAL, "jobs", "java.lang.String", "String");
          return this;
      }

      public UserOrganizationCriteria andJobsLessThan(java.lang.String value) {
          addCriterion("jobs", value, ConditionMode.LESS_THEN, "jobs", "java.lang.String", "String");
          return this;
      }

      public UserOrganizationCriteria andJobsLessThanOrEqualTo(java.lang.String value) {
          addCriterion("jobs", value, ConditionMode.LESS_EQUAL, "jobs", "java.lang.String", "String");
          return this;
      }

      public UserOrganizationCriteria andJobsBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("jobs", value1, value2, ConditionMode.BETWEEN, "jobs", "java.lang.String", "String");
    	  return this;
      }

      public UserOrganizationCriteria andJobsNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("jobs", value1, value2, ConditionMode.NOT_BETWEEN, "jobs", "java.lang.String", "String");
          return this;
      }
        
      public UserOrganizationCriteria andJobsIn(List<java.lang.String> values) {
          addCriterion("jobs", values, ConditionMode.IN, "jobs", "java.lang.String", "String");
          return this;
      }

      public UserOrganizationCriteria andJobsNotIn(List<java.lang.String> values) {
          addCriterion("jobs", values, ConditionMode.NOT_IN, "jobs", "java.lang.String", "String");
          return this;
      }
	public UserOrganizationCriteria andStatusIsNull() {
		isnull("status");
		return this;
	}
	
	public UserOrganizationCriteria andStatusIsNotNull() {
		notNull("status");
		return this;
	}
	
	public UserOrganizationCriteria andStatusIsEmpty() {
		empty("status");
		return this;
	}

	public UserOrganizationCriteria andStatusIsNotEmpty() {
		notEmpty("status");
		return this;
	}
       public UserOrganizationCriteria andStatusEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andStatusNotEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.NOT_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andStatusGreaterThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andStatusGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andStatusLessThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andStatusLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andStatusBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("status", value1, value2, ConditionMode.BETWEEN, "status", "java.lang.Integer", "Float");
    	  return this;
      }

      public UserOrganizationCriteria andStatusNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("status", value1, value2, ConditionMode.NOT_BETWEEN, "status", "java.lang.Integer", "Float");
          return this;
      }
        
      public UserOrganizationCriteria andStatusIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.IN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andStatusNotIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.NOT_IN, "status", "java.lang.Integer", "Float");
          return this;
      }
	public UserOrganizationCriteria andJobIdIsNull() {
		isnull("job_id");
		return this;
	}
	
	public UserOrganizationCriteria andJobIdIsNotNull() {
		notNull("job_id");
		return this;
	}
	
	public UserOrganizationCriteria andJobIdIsEmpty() {
		empty("job_id");
		return this;
	}

	public UserOrganizationCriteria andJobIdIsNotEmpty() {
		notEmpty("job_id");
		return this;
	}
       public UserOrganizationCriteria andJobIdEqualTo(java.lang.Integer value) {
          addCriterion("job_id", value, ConditionMode.EQUAL, "jobId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andJobIdNotEqualTo(java.lang.Integer value) {
          addCriterion("job_id", value, ConditionMode.NOT_EQUAL, "jobId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andJobIdGreaterThan(java.lang.Integer value) {
          addCriterion("job_id", value, ConditionMode.GREATER_THEN, "jobId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andJobIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("job_id", value, ConditionMode.GREATER_EQUAL, "jobId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andJobIdLessThan(java.lang.Integer value) {
          addCriterion("job_id", value, ConditionMode.LESS_THEN, "jobId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andJobIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("job_id", value, ConditionMode.LESS_EQUAL, "jobId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andJobIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("job_id", value1, value2, ConditionMode.BETWEEN, "jobId", "java.lang.Integer", "Float");
    	  return this;
      }

      public UserOrganizationCriteria andJobIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("job_id", value1, value2, ConditionMode.NOT_BETWEEN, "jobId", "java.lang.Integer", "Float");
          return this;
      }
        
      public UserOrganizationCriteria andJobIdIn(List<java.lang.Integer> values) {
          addCriterion("job_id", values, ConditionMode.IN, "jobId", "java.lang.Integer", "Float");
          return this;
      }

      public UserOrganizationCriteria andJobIdNotIn(List<java.lang.Integer> values) {
          addCriterion("job_id", values, ConditionMode.NOT_IN, "jobId", "java.lang.Integer", "Float");
          return this;
      }
}